<template>
    <div class="person">
        <h2>标签的ref属性</h2>
        <h2>用在普通标签上获取的是DOM节点</h2>
        <h2>用在组件标签上获取的是组件实例对象</h2>
        <p iref="content">我在Person中</p>
        <button @click="showLog">Person试一试</button>
    </div>
</template>

<script lang="ts" setup name="Person">
import {type PersonInter} from '@/types';
// import { ref } from 'vue';
let person :PersonInter {id:'01',name:'张三',age:18};
</script>

<style lang="css" scoped></style> 